Global Variables

Global variables are defined globally in the context of the TPT installation, independent of the TPT project. They are used to specify settings for a TPT installation such as installation path or project path that can be used in all TPT projects you open with this TPT installation.

Use project-specific variables to specify settings for a specific TPT project, see Project-specific Variables.

Global variables are declared and initialized in the TPT Tool Preferences dialog, see General Settings - Variables. To display them in the test report, select the Show in Report checkbox in this dialog.

Project-specific variable prevails over global variables.

Global variables are stored in the global tpt.config file which is stored in the <AppData>/Local/TPT folder. They can be used in many places in TPT if you use the following syntax: ${<global_variable_name>}.

${<global_variable_name>} is case-sensitive.

The autocompletion feature (shortcut Ctrl+Space) is available at all places where you can use a global variable, for example, in the Report sections of the Execution configuration dialog .

Selection of the global variables by means of autocompletion